﻿using System;
using Terraria.DataStructures;
using Terraria.Enums;

namespace Terraria.Modules
{
	// Token: 0x02000160 RID: 352
	public class TileObjectBaseModule
	{
		// Token: 0x06000EDD RID: 3805 RVA: 0x004004FC File Offset: 0x003FE6FC
		public TileObjectBaseModule(TileObjectBaseModule copyFrom = null)
		{
			if (copyFrom == null)
			{
				this.width = 1;
				this.height = 1;
				this.origin = Point16.Zero;
				this.direction = TileObjectDirection.None;
				this.randomRange = 0;
				this.flattenAnchors = false;
				return;
			}
			this.width = copyFrom.width;
			this.height = copyFrom.height;
			this.origin = copyFrom.origin;
			this.direction = copyFrom.direction;
			this.randomRange = copyFrom.randomRange;
			this.flattenAnchors = copyFrom.flattenAnchors;
		}

		// Token: 0x0400126E RID: 4718
		public int width;

		// Token: 0x0400126F RID: 4719
		public int height;

		// Token: 0x04001270 RID: 4720
		public Point16 origin;

		// Token: 0x04001271 RID: 4721
		public TileObjectDirection direction;

		// Token: 0x04001272 RID: 4722
		public int randomRange;

		// Token: 0x04001273 RID: 4723
		public bool flattenAnchors;
	}
}
